<?php


namespace Modules\Admin\Http\Controllers\Authorization\Permission;


use Modules\Common\Models\AdminPermission;
use Modules\Common\Util\Api;

class Retrieve
{
    /**
     * @Route(path=/api/admin/authorization/permission)
     */
    public function index()
    {
        $permissions = AdminPermission::orderBy('sort')->get(['name', 'id', 'sort', 'disable']);
        return Api::success($permissions);
    }

}
